package com.clippick.common;

import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import co.kr.clippick.R;

public class Toasts {
	public static void showToast(Context mContext, String msg) {
		Toast toast = new Toast(mContext);
		LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View view = inflater.inflate(R.layout.toasts, null);
		TextView message = (TextView) view.findViewById(R.id.text);
		message.setText(msg);
		toast.setView(view);
		toast.setGravity(Gravity.CENTER, 0, 150);
		toast.show();
	}
}